﻿<controls:ChildWindow x:Class="Zeus.UserControls.videowindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="650" Height="500" 
           Title="videowindow">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <MediaElement x:Name="media" AutoPlay="True" 
                      Grid.Row="0" Grid.ColumnSpan="6" />


        <Slider Height="23" x:Name="controlvolume" Width="100" 
                 LargeChange="0.1" Maximum="1" Value="0.5" ValueChanged="ControlvolumeValueChanged" HorizontalAlignment="Center" Grid.Column="3" Grid.Row="1"/>

        <Button x:Name="CancelButton" Content="Cancel"
              Click="CancelButton_Click" Width="50" Height="23"  HorizontalAlignment="Left" Grid.Column="5" Grid.Row="1"/>

        <Button x:Name="OKButton" Content="OK" 
              Click="OkButtonClick" Width="50" Height="23"  HorizontalAlignment="Center" Grid.Column="4" Grid.Row="1"/>



        <Button Click="StopMedia" Grid.Column="0" Grid.Row="1" Content="Stop" />


        <Button Click="PauseMedia" Grid.Column="1" Grid.Row="1" Content="Pause" />


        <Button Click="PlayMedia" Grid.Column="2" Grid.Row="1" Content="Play" />

    </Grid>
</controls:ChildWindow>